<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
	<title>Clothes Galore - End Item</title>
	<link rel=stylesheet type="text/css" href="css/style.css">
</head>

<body bottommargin="0" leftmargin="0" marginheiht="0" marginwidth="0" rightmargin="0" topmargin="0" background="background.jpg" text="#FFFFFF">

<table width="100%" cellpadding="0" cellspacing="0" border="0" height="22">
	<tr valign="top">
		<td width="100%" background="top_bg1.jpg"><img src="top_bg1.jpg" width="21" height="22" border="0" alt=""></td>
		<td width="319"><img src="top_right1.jpg" width="319" height="22" border="0" alt=""></td>
	</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0" height="184">
	<tr valign="top">
		<td width="100%" background="top_bg2.jpg"><img src="templogo.png" width="277" height="117" border="0" alt=""></td>
		<td width="184"><img src="top_right2.jpg" width="184" height="184" border="0" alt=""></td>
	</tr>
</table>

<table width="100%" cellpadding="0" cellspacing="0" border="0" height="100%">
	<tr valign="top">
		<Td width="5">&nbsp;</td>

		<td width="160">
		<jsp:include page="menu.jsp"/>

<BR>
			
		</td>


		<Td width="10">&nbsp;&nbsp;&nbsp;&nbsp;</td>
		
				
		<td width="100%">
			<table width="100%" cellpadding="0" cellspacing="0" border="0">
				<tr valign="top">
					<td width="100%">
<!-----------page content goes below-------------------------------------------------->

	
 <h2 class = "heading"> End an item </h2>	
 
<a href = "logout.do"> <image style ="position:absolute; TOP:240px; LEFT:1000px "src = "images/button-logout.png" alt = "logout button" width="80" height="20"> </a>

 <div id="content2">	

 	<script type='text/javascript'>


	function formValidator(){

		
		if(isNumeric(itemId, "Please enter the Item ID")) {
			if(madeSelection(endreason, "Please Choose an end reason")) {
				return true;
			}
  		}
     		return false;
	}


	function getElements()
  	{
  		var x=document.getElementsByName("x");
  		alert('Please enter your itemID');
  	}


	function isNumeric(elem, helperMsg){
		var numericExpression = /^[0-9]+$/;
	
		if(elem.value.match(numericExpression)){
			return true;
		}

		else {
			alert(helperMsg);
			elem.focus();
			return false;
		}
	}



	function madeSelection(elem, helperMsg){
		if(elem.value == "Please Choose") {	
			alert(helperMsg);
			elem.focus();
			return false;
		}	
		
		else{
			return true;		
		}
	}

     </script>

 <form method="post" action="EndItem-2.do" onSubmit='return formValidator()' >

 <table cellpadding = "5px"> 
	<tr>
 		<td>
		Please input your item id:
 		&nbsp;&nbsp;&nbsp;
 		<input type="Text" name="itemid_end" id='itemId'  />
		</td>
	</tr>	


	<tr>
 		<td>
		Ending Reason:
 
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		&nbsp;
 		<select name ="endreason" id="endreason" size="1" >

 			<option >Lost or Found</option> 

 			<option >Not Available</option>

			<option >Other</option>

 		</select>

		</td>
 

 	<tr>

		<td colspan = "2" align = "center"> 
 		<input type="submit" value="Submit" />

 		</td>
 	</tr>

 </table>
 </form>

 </div>


<!-- content ends here-->  
  <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<center> &copy; Copyright Pherenike Consultants 2011, All Rights Reserved.</center>
<center> This template was sourced from Steves-Templates.com </center>




					</td>
				</tr>
			</table>
		</td>

		<Td width="5">&nbsp;</td>
				
		<td width="77" background="rightbg.jpg" height="100%"><img src="rightbg.jpg" width="77" height="22" border="0" alt=""></td>
	</tr>
</table>


</body>
</html>

